package com.forenow.demo.demo8;

import com.forenow.demo.demo3.B;

import javax.swing.*;
import java.awt.*;

public class GUIDemo extends Frame{
    public GUIDemo(String title){
        this.setTitle(title);
        this.setVisible(true);
        this.setSize(450,430);
    }
    public static void main(String[] args) {
        GUIDemo guiDemo=new GUIDemo("NewTitle");
        Button button= new Button("this is a button");
        button.setSize(45,30);
        button.setVisible(true);
        Component component=new Frame();
        guiDemo.add(button);
    }

}
